
x = 100

def mysum(a, b):
    x = a + b
    z = a * b
    print('x=', x)  # 5
    print('z=', z)  # 6

mysum(2, 3)
print(x)  #  100
print(z)  # 报错